//
//  JMCrc16.h
//  crc16
//
//  Created by zhangjiaming on 16/1/21.
//  Copyright © 2016年 OpenSesame. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JMCrc16 : NSObject
/** 发送的数据 */
@property (strong, nonatomic, readonly) NSMutableData *sendData;

/** 接收的数据 */
@property (strong, nonatomic, readonly) NSData *receiveData;

/** 校验位 */
@property (assign, nonatomic, readonly) int16_t checkout;

/** port为所要校验数据的端口，0为发送端， 1为接收端 */
- (instancetype)initWithData:(NSData *)data andPort:(NSInteger)port;

@end
